#ifndef REPLAYCAPCMDFRAME_H
#define REPLAYCAPCMDFRAME_H

#include "cmdframe.h"

namespace IGBTProtocol
{
    class IGBTPROTOCOL_EXPORT ReplayCapCmdFrame : public CmdFrame
    {
        protected:
            ReplayCapCmdFrame();
        public:
            ReplayCapCmdFrame(unsigned short capturePeriodUs, unsigned short replayIntervalS);

        protected:
            unsigned short _capturePeriodUs;
            unsigned short _replayIntervalS;

        public:
            unsigned short capturePeriodUs() const { return _capturePeriodUs; }
            unsigned short replayIntervalS() const { return _replayIntervalS; }

            unsigned int frame(QByteArray* buff, bool tail = false);
    };
}

#endif // REPLAYCAPCMDFRAME_H
